<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>跨域测试</title>

    <!--通过CDN 方法是引入 axios 进行异步请求-->
    <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
    <script>
        // 发送异步请求
        axios.get("http://127.0.0.1:8080/demo")
    </script>
</head>
<body>
<h1>用来测试跨域请求</h1>
</body>
</html>